/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marketrmi;

import id2212.homework2.ClientInter;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

/**
 *
 * @author yann
 */
public interface AccountClientInter extends Remote{
    /**
     * Function to call when you want to delete a user
     *  @ delete client in the database you have to unlink the client from the hashtable
     */
     public void del() throws RemoteException;
    
     /**
     * Function to call when you want that the client sell an object
     */
    public void sell(String itemName, int price, int amount,String sellerBankPassword) throws RemoteException;
    
    public void wish(ItemInter itemRef, int wishPriceMax) throws RemoteException;
    
    public String getClientName() throws RemoteException;
    
    public List<Item> getSellList() throws RemoteException;
    
    public ClientInter getClientRef() throws RemoteException;
            
    public void setClientRef(ClientInter clientRef) throws RemoteException;
    
    public void setNotificationString(String str)throws RemoteException;
    
    public String getNotificationString()throws RemoteException;

    public int getNbBoughtItem() throws RemoteException;
            
    public void setNbBoughtItem(int nbBoughtItem) throws RemoteException;
    
    public int getNbSoldItem() throws RemoteException;
            
    public void setNbSoldItem(int nbSoldItem) throws RemoteException;
    
    public String getMarketPassword() throws RemoteException;
    
    public String getBankPassword() throws RemoteException;
    
    public void setBankPassword(String bankPassword) throws RemoteException;
    
    public Market getMarket() throws RemoteException;
    
  
}
